﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admini/Master.Master" AutoEventWireup="true" CodeBehind="DictionaryList.aspx.cs" Inherits="ART.Admini.Setting.DictionaryList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
 <div id="h_main">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <contenttemplate>
        <table border="0" cellspacing="0" style="width: 100%;">
            <tr class="daohang_title">
                <td style="text-align: left; padding-left: 3px;">
                    数据分类↓
                </td>
                <td style="text-align: right; padding-right: 3px;">
                
                </td>
            </tr>
            <tr>
                <td colspan="2" style="padding-bottom:5px; padding-top:5px; line-height:20px;">
                <div class="dic_item">◆
    <a href="DictionaryList.aspx?MainDictionaryId=0" >全部分类</a></div>
    <asp:Repeater ID="repMainDictionary" runat="server">
    <ItemTemplate>
    <div class="dic_item">◆
    <a href="DictionaryList.aspx?MainDictionaryId=<%#Eval("Id") %>" ><%#Eval("DictionaryName")%></a></div>
    </ItemTemplate>
    </asp:Repeater>
                </td>
            </tr>
            <tr class="daohang_title">
                <td style="text-align: left; padding-left: 3px;">
                    <%= MainDictionaryName %>列表↓
                </td>
                <td style="text-align: right; padding-right: 3px;">
                    <input id="btnAdd" type="button" value="新 增" class="btnlistOver" 
                    onclick="javascript:openDlg('DictionaryAdd','新增字典','DictionaryDetail.aspx?MainDictionaryId=<%=MainDictionaryId %>',340,'auto','');" />
                    <asp:Button ID="lbtnDeletes" runat="server" Text="批量删除" CssClass="btnlistOver" OnClientClick="return confirm('确定要删除吗？')"
                        OnClick="lbtnDeletes_Click" /></td>
            </tr>
            <tr>
                <td colspan="2">
                <ctl:Repeater ID="rptDictionary" runat="server" OnItemCommand="rptDictionary_ItemCommand">
                    <HeaderTemplate><table cellpadding="0" cellspacing="0" border="0" width="100%" id="tableData">
                        <tr>
                            <th style="width:40px;">
                                <input id="cheList" type="checkbox" onclick="checkAll(this.form)" /></th>
                            <th>
                                字典名称</th>
                            <th style="width: 70px;">
                                操作</th>
                        </tr>
                         </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_data" onmouseout="mout(this);" onmouseover="mover(this);">
                                    <td>
                                        <input id="cheId" runat="server" value='<%#Eval("Id")%>' type="checkbox" /></td>
                                    <td>
                                        <a href="javascript:void(0)" onclick="javascript:openDlg('DictionaryView','查看字典','DictionaryView.aspx?MainDictionaryId=<%=MainDictionaryId %>&DictionaryId=<%# Eval("Id") %>',340,'auto','');">
                                            <asp:Literal ID="ltlTitle" runat="server" Text='<%#Eval("DictionaryName") %>'></asp:Literal>
                                        </a><%# GetIfDelete(Eval("IfDelete").ToString())%>
                                    </td>
                                    <td>
                                        <a href="javascript:void(0)" onclick="javascript:openDlg('DictionaryEdit','编辑字典','DictionaryDetail.aspx?MainDictionaryId=<%=MainDictionaryId %>&DictionaryId=<%# Eval("Id") %>',340,'auto','');">
                                            编辑</a>
                                        <asp:LinkButton ID="lbtnDelete" CommandName="lbtnDelete" CommandArgument='<%#Eval("Id")%>'
                                            title="删除" OnClientClick="return confirm('确认删除吗？')" runat="server">删除</asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                </table>
            </FooterTemplate>
                        </ctl:Repeater>
                    
                </td>
            </tr>
        </table>
        </contenttemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
